package com.fzb.forum4j.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fzb.forum4j.dao.api.ICategoryDao;
import com.fzb.forum4j.po.Category;
import com.fzb.forum4j.po.QueryMode;
import com.fzb.forum4j.service.api.ICategoryService;
@Service("categoryServiceImpl")

public class CategoryServiceImpl extends BaseServiceImpl<Category> implements
		ICategoryService {
	
	@Resource(name="categoryDaoImpl")
	private ICategoryDao categoryDao;
	
	@Override
	public int getEidByCatelog(String catalog) {
		return categoryDao.getCategoryIdByCatelog(catalog);
	}

	@Override
	public void getCategoryTree(QueryMode<Category> qmd) {
		categoryDao.getCategoryTree(qmd);
		
	}

	 

}
